/*
 * 账号管理模块
 */


export function getCompanyList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 6,
      "list": [{
        "id": 27,
        "parentCompanyId": null,
        "proxyId": null,
        "isEnabled": 1,
        "cityId": 320500,
        "companyName": "苏州壹品信息技术有限公司",
        "logo": "/platform/image/20201115/201115134926920.png",
        "industry": 2,
        "employeeCount": 100,
        "telephone": "0512-88888888",
        "linkPhone": "17768089870",
        "email": "1285118892@qq.com",
        "shortName": "壹品",
        "websiteUrl": "yipin",
        "memo": "这是一个不错的公司！",
        "adminAccountId": 47,
        "storeType": null,
        "localInterface": null,
        "createTime": "2020-11-15 13:50:38",
        "creator": 1,
        "isDelete": 0,
        "accountName": "david",
        "password": "123456",
        "cou": 1,
        "realName": "徐魏魏",
        "accountCreateTime": "2020-11-15 13:50:38",
        "cityName": "苏州市",
        "provinceId": 320000,
        "provinceName": "江苏",
        "proxyName": null
      }, {
        "id": 26,
        "parentCompanyId": null,
        "proxyId": null,
        "isEnabled": 0,
        "cityId": null,
        "companyName": "李敏测试企业",
        "logo": null,
        "industry": null,
        "employeeCount": null,
        "telephone": null,
        "linkPhone": null,
        "email": null,
        "shortName": null,
        "websiteUrl": null,
        "memo": null,
        "adminAccountId": 45,
        "storeType": null,
        "localInterface": null,
        "createTime": "2020-11-15 11:18:25",
        "creator": 1,
        "isDelete": 0,
        "accountName": null,
        "password": null,
        "cou": 1,
        "realName": null,
        "accountCreateTime": "2020-11-15 11:18:25",
        "cityName": null,
        "provinceId": null,
        "provinceName": null,
        "proxyName": null
      }, {
        "id": 25,
        "parentCompanyId": null,
        "proxyId": null,
        "isEnabled": 0,
        "cityId": null,
        "companyName": "新公司",
        "logo": null,
        "industry": null,
        "employeeCount": null,
        "telephone": null,
        "linkPhone": null,
        "email": null,
        "shortName": null,
        "websiteUrl": null,
        "memo": null,
        "adminAccountId": 43,
        "storeType": null,
        "localInterface": null,
        "createTime": "2020-11-14 19:02:36",
        "creator": 1,
        "isDelete": 0,
        "accountName": "abcdef",
        "password": "1",
        "cou": 1,
        "realName": "abc",
        "accountCreateTime": "2020-11-14 19:02:36",
        "cityName": null,
        "provinceId": null,
        "provinceName": null,
        "proxyName": null
      }, {
        "id": 23,
        "parentCompanyId": null,
        "proxyId": null,
        "isEnabled": 1,
        "cityId": 130200,
        "companyName": "1212",
        "logo": "/platform/image/20201114/201114184728761.jpg",
        "industry": 1,
        "employeeCount": 1212,
        "telephone": "1212",
        "linkPhone": "1212",
        "email": "1212",
        "shortName": "1212",
        "websiteUrl": "1212",
        "memo": "111",
        "adminAccountId": 41,
        "storeType": null,
        "localInterface": null,
        "createTime": "2020-11-14 18:47:45",
        "creator": 1,
        "isDelete": 0,
        "accountName": "dkdk",
        "password": "123",
        "cou": 1,
        "realName": "1212",
        "accountCreateTime": "2020-11-14 18:47:45",
        "cityName": "唐山市",
        "provinceId": 130000,
        "provinceName": "河北",
        "proxyName": null
      }, {
        "id": 5,
        "parentCompanyId": null,
        "proxyId": null,
        "isEnabled": 1,
        "cityId": 510800,
        "companyName": "测试企业",
        "logo": null,
        "industry": 1,
        "employeeCount": 1,
        "telephone": null,
        "linkPhone": "132132132132",
        "email": "321@qq.com",
        "shortName": null,
        "websiteUrl": "1",
        "memo": null,
        "adminAccountId": null,
        "storeType": null,
        "localInterface": "100",
        "createTime": "2020-10-31 21:48:03",
        "creator": 1,
        "isDelete": 0,
        "accountName": "ttest",
        "password": "123",
        "cou": 1,
        "realName": "张三",
        "accountCreateTime": "2020-10-31 21:48:03",
        "cityName": "广元市",
        "provinceId": 510000,
        "provinceName": "四川",
        "proxyName": null
      }, {
        "id": 1,
        "parentCompanyId": null,
        "proxyId": null,
        "isEnabled": 1,
        "cityId": 511100,
        "companyName": "测试",
        "logo": null,
        "industry": 1,
        "employeeCount": 1,
        "telephone": "3333",
        "linkPhone": "11555555555",
        "email": "2222222222@qq.com",
        "shortName": "海教",
        "websiteUrl": "http://education",
        "memo": "大师傅",
        "adminAccountId": null,
        "storeType": null,
        "localInterface": null,
        "createTime": "2020-10-31 20:19:50",
        "creator": 1,
        "isDelete": 0,
        "accountName": "test",
        "password": "123",
        "cou": 2,
        "realName": "王大力",
        "accountCreateTime": "2020-11-01 13:03:23",
        "cityName": "乐山市",
        "provinceId": 510000,
        "provinceName": "四川",
        "proxyName": null
      }]
    }
  }
  return {
    url: 'account/getCompanyList',
    type: 'get',
    data: data
  }
}

export function getCompany() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "id": 27,
      "parentCompanyId": null,
      "proxyId": null,
      "isEnabled": 1,
      "cityId": 320500,
      "companyName": "苏州壹品信息技术有限公司",
      "logo": "/platform/image/20201115/201115134926920.png",
      "industry": 2,
      "employeeCount": 100,
      "telephone": "0512-88888888",
      "linkPhone": "17768089870",
      "email": "1285118892@qq.com",
      "shortName": "壹品",
      "websiteUrl": "yipin",
      "memo": "这是一个不错的公司！",
      "adminAccountId": 47,
      "storeType": null,
      "localInterface": null,
      "createTime": "2020-11-15 13:50:38",
      "creator": 1,
      "isDelete": 0,
      "accountName": "david",
      "password": "123456",
      "cou": 1,
      "realName": "徐魏魏",
      "accountCreateTime": "2020-11-15 13:50:38",
      "cityName": "苏州市",
      "provinceId": 320000,
      "provinceName": "江苏",
      "proxyName": null
    }
  }
  return {
    url: 'account/getCompany',
    type: 'get',
    data: data
  }
}

export function getCompanyBatchList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 11,
      "list": [{
        "id": 11,
        "batchEnabled": 1,
        "companyId": null,
        "batchName": "违反违反",
        "accountCount": 1222,
        "beginDate": "2020-11-24 00:00:00",
        "endDate": "2027-12-23 00:00:00",
        "createTime": "2020-11-08 23:57:09",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 10,
        "batchEnabled": null,
        "companyId": null,
        "batchName": "范围分为范围额范围分为",
        "accountCount": 122,
        "beginDate": "2020-11-25 00:00:00",
        "endDate": "2020-12-31 00:00:00",
        "createTime": "2020-11-05 18:21:50",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 9,
        "batchEnabled": null,
        "companyId": null,
        "batchName": "二分",
        "accountCount": 12,
        "beginDate": null,
        "endDate": null,
        "createTime": "2020-11-05 18:21:33",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 8,
        "batchEnabled": null,
        "companyId": null,
        "batchName": null,
        "accountCount": 1222,
        "beginDate": null,
        "endDate": null,
        "createTime": "2020-11-05 18:21:16",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 7,
        "batchEnabled": 1,
        "companyId": null,
        "batchName": "第五批",
        "accountCount": 50,
        "beginDate": "2020-11-05 00:00:00",
        "endDate": "2027-12-31 00:00:00",
        "createTime": "2020-11-05 18:23:04",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 6,
        "batchEnabled": null,
        "companyId": null,
        "batchName": "第四批",
        "accountCount": 60,
        "beginDate": "2020-10-06 00:00:00",
        "endDate": "2020-11-26 00:00:00",
        "createTime": "2020-10-31 14:23:35",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 5,
        "batchEnabled": 0,
        "companyId": null,
        "batchName": "第四批",
        "accountCount": 60,
        "beginDate": "2020-10-06 00:00:00",
        "endDate": "2022-11-26 00:00:00",
        "createTime": "2020-10-31 14:30:18",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 4,
        "batchEnabled": null,
        "companyId": null,
        "batchName": "第三批",
        "accountCount": 50,
        "beginDate": "2020-10-06 00:00:00",
        "endDate": "2021-11-18 00:00:00",
        "createTime": "2020-10-31 13:45:33",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 3,
        "batchEnabled": null,
        "companyId": null,
        "batchName": "100",
        "accountCount": 100,
        "beginDate": "2020-10-08 00:00:00",
        "endDate": "2021-11-17 00:00:00",
        "createTime": "2020-10-31 13:41:40",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 2,
        "batchEnabled": 0,
        "companyId": null,
        "batchName": "第一批",
        "accountCount": 50,
        "beginDate": "2020-10-01 00:00:00",
        "endDate": "2020-10-30 00:00:00",
        "createTime": "2020-10-31 13:46:24",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }]
    }
  }
  return {
    url: 'account/getCompanyBatchList',
    type: 'get',
    data: data
  }
}

export function getProxyList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 2,
      "list": [{
        "id": 4,
        "proxyName": "苏州壹品信息技术有限公司",
        "linkmam": "徐魏魏",
        "phone": "17768089870",
        "createTime": "2020-11-14 14:12:42"
      }, {"id": 1, "proxyName": "代理商A", "linkmam": "1212", "phone": "15555555555", "createTime": "2020-11-11 15:58:33"}]
    }
  }
  return {
    url: 'account/getProxyList',
    type: 'get',
    data: data
  }
}

export function getSetting() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {"id": 1, "startupPage": "platform/image/20201115/201115082746476.png"}
  }
  return {
    url: 'account/getSetting',
    type: 'get',
    data: data
  }
}

export function getPostList() {
  const postData = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 9,
      "list": [{
        "id": 23,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "李敏测试岗位",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-15 10:52:53",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }, {
        "id": 22,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "李敏测试岗位",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-15 10:52:44",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 1
      }, {
        "id": 20,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "打发顺丰",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-13 23:29:37",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 2
      }, {
        "id": 14,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "人事",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-01 17:08:26",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }, {
        "id": 13,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "运营",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-01 17:08:14",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }, {
        "id": 12,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "测试",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-01 13:55:33",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }, {
        "id": 10,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "阿斯蒂芬",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-01 13:52:33",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }, {
        "id": 9,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "阿斯蒂芬",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-01 13:52:27",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }, {
        "id": 3,
        "groupCateId": null,
        "rankId": null,
        "companyId": null,
        "groupName": "管理员",
        "groupType": null,
        "groupCondition": null,
        "parentGroupId": null,
        "createTime": "2020-11-01 13:52:56",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "groupCateName": null,
        "rankName": null,
        "rankCateName": null,
        "parentGroupName": null,
        "parentGroupCateId": null,
        "parentGroupCateName": null,
        "parentParentGroupId": null,
        "parentParentGroupName": null,
        "accountCount": 0
      }]
    }
  }
  return {
    url: 'account/getPostList',
    type: 'post',
    data: postData
  }
}

export function getAccountGroupMenu() {
  const postMenuData = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 3,
      "list": [{
        "id": 175,
        "menuId": 27,
        "groupId": 23,
        "title": "课程分类",
        "path": "courseManage/courseCate/courseCateList",
        "icon": null,
        "sortIndex": 1,
        "menuType": 1
      }, {
        "id": 174,
        "menuId": 48,
        "groupId": 23,
        "title": "直播课程",
        "path": "courseManage/courseList?courseType=4",
        "icon": null,
        "sortIndex": 0,
        "menuType": 1
      }, {
        "id": 173,
        "menuId": 26,
        "groupId": 23,
        "title": "课程管理",
        "path": null,
        "icon": "menu/kc.png",
        "sortIndex": 1,
        "menuType": 1
      }]
    }
  }
  return {
    url: 'account/getAccountGroupMenu',
    type: 'post',
    data: postMenuData
  }
}

export function getAccountList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 2,
      "list": [{
        "id": 46,
        "groupId": 22,
        "companyId": null,
        "batchId": null,
        "roleId": 2,
        "realName": "李敏",
        "linkphone": "123456123456112",
        "accountName": "limin",
        "password": "123",
        "headimg": null,
        "sex": null,
        "email": null,
        "isEnabled": 1,
        "createTime": "2020-11-15 11:24:14",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "deptName": null,
        "groupName": "李敏测试岗位"
      }, {
        "id": 39,
        "groupId": 20,
        "companyId": null,
        "batchId": null,
        "roleId": 2,
        "realName": "张三",
        "linkphone": "133",
        "accountName": "zhangsan",
        "password": "123",
        "headimg": null,
        "sex": null,
        "email": null,
        "isEnabled": 1,
        "createTime": "2020-11-14 00:27:02",
        "isDelete": 0,
        "creator": 1,
        "companyName": null,
        "deptName": null,
        "groupName": "打发顺丰"
      }]
    }
  }
  return {
    url: 'account/getAccountList',
    type: 'post',
    data: data
  }
}

export function getAccount() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "id": 39,
      "groupId": 20,
      "companyId": null,
      "batchId": null,
      "roleId": 2,
      "realName": "张三",
      "linkphone": "133",
      "accountName": "zhangsan",
      "password": "123",
      "headimg": null,
      "sex": null,
      "email": null,
      "isEnabled": 1,
      "createTime": "2020-11-14 00:27:02",
      "isDelete": 0,
      "creator": 1,
      "companyName": null,
      "deptName": null,
      "groupName": "打发顺丰"
    }
  }
  return {
    url: 'account/getAccount',
    type: 'post',
    data: data
  }
}
